import Vue from 'vue';
import Vuex from 'vuex';
import cart from './cart/index.js'
import user from './user/index.js'


Vue.use(Vuex);

export default new Vuex.Store({
    // 实现vuex仓库模块式开发存储数据
    modules: {
        cart,
        user
    }
});